<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/9
 * Time: 14:41
 */
namespace app\portal\controller;

use app\portal\model\PortalCategoryModel;
use cmf\controller\HomeBaseController;
use think\Db;
class GnsxController extends HomeBaseController{
    public function index(){

        $list1=Db::name("video")->where('type',1)->where("post_status",1)->select();
        $list2=Db::name("video")->where('type',2)->where("post_status",1)->select();
        $list3=Db::name("video")->where('type',3)->where("post_status",1)->select();
        $list4=Db::name("video")->where('type',4)->where("post_status",1)->select();
        $this->assign('list1',$list1);
        $this->assign('list2',$list2);
        $this->assign('list3',$list3);
        $this->assign('list4',$list4);

        return $this->fetch(':gnsx');
    }
}